package cate.game.attr;

import cate.game.play.support.PlayBuildContext;
import cate.game.role.bag.rune.Rune;
import cate.game.role.bag.rune.RunesOn;

public class RunesPowerAttrPart extends PowerAttrPart {
    public RunesPowerAttrPart(){}

    public RunesPowerAttrPart(PlayBuildContext ctx, RunesOn po) {
        FightAttr attr = new FightAttr();
        this.powerExt = 0;
        if (po.runeMap != null) {
            for (Rune rune : po.runeMap.values()) {
                attr.add(rune.getPowerAttr(ctx));
            }
        }
        this.attr = attr;
        this.skills = po.getSkills();
    }
}
